<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_rent_record.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_rent_record.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_rent_record',
                    name: 'T_rent_record',
                    url: "/T_rent_record/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_category_id":"","c_stock_id":"","c_stock_code":"","c_snowseason":"","c_service_point_name":"","c_service_point_id":"","c_rent_voucher_id":"","c_remark":"","c_phone":"","c_operator_name":"","c_operator_id":"","c_operator_account":"","c_number":"","c_name":"","c_id":"","c_device_code":"","c_damages":"","c_damage_reason":"","c_create_time":"","c_category_name":"","c_stock_name":"","c_type":""},
                editFormOptions: [[{"title":"c_category_id","field":"c_category_id","type":"text"},
                               {"title":"c_stock_id","field":"c_stock_id","type":"text"},
                               {"title":"c_stock_code","field":"c_stock_code","type":"text"},
                               {"title":"雪季","required":true,"field":"c_snowseason","type":"text"}],
                              [{"title":"c_service_point_name","field":"c_service_point_name","type":"text"},
                               {"title":"c_service_point_id","field":"c_service_point_id","type":"text"},
                               {"title":"c_rent_voucher_id","field":"c_rent_voucher_id","disabled":true,"type":"text"},
                               {"title":"c_remark","field":"c_remark","type":"text"}],
                              [{"title":"电话","field":"c_phone","type":"text"},
                               {"title":"c_operator_name","field":"c_operator_name","type":"text"},
                               {"title":"c_operator_id","field":"c_operator_id","type":"text"},
                               {"title":"c_operator_account","field":"c_operator_account","type":"text"}],
                              [{"title":"手牌","field":"c_number","type":"text"},
                               {"title":"名字","field":"c_name","type":"text"},
                               {"title":"租赁记录id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"c_device_code","field":"c_device_code","type":"text"}],
                              [{"title":"赔偿金","field":"c_damages","type":"text"},
                               {"title":"c_damage_reason","field":"c_damage_reason","type":"text"},
                               {"title":"创建时间","field":"c_create_time","type":"text"},
                               {"title":"c_category_name","field":"c_category_name","type":"text"}],
                              [{"title":"c_stock_name","field":"c_stock_name","type":"text"},
                               {"title":"类型","field":"c_type","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_category_id',title:'c_category_id',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_stock_id',title:'c_stock_id',type:'string',width:120,align:'left'},
                       {field:'c_stock_code',title:'c_stock_code',type:'string',width:120,align:'left'},
                       {field:'c_snowseason',title:'雪季',type:'string',width:120,require:true,align:'left'},
                       {field:'c_service_point_name',title:'c_service_point_name',type:'string',width:120,align:'left'},
                       {field:'c_service_point_id',title:'c_service_point_id',type:'string',width:120,align:'left'},
                       {field:'c_rent_voucher_id',title:'c_rent_voucher_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_remark',title:'c_remark',type:'string',width:120,align:'left'},
                       {field:'c_phone',title:'电话',type:'string',width:120,align:'left'},
                       {field:'c_operator_name',title:'c_operator_name',type:'string',width:120,align:'left'},
                       {field:'c_operator_id',title:'c_operator_id',type:'string',width:120,align:'left'},
                       {field:'c_operator_account',title:'c_operator_account',type:'string',width:120,align:'left'},
                       {field:'c_number',title:'手牌',type:'string',width:120,align:'left'},
                       {field:'c_name',title:'名字',type:'string',width:120,align:'left'},
                       {field:'c_id',title:'租赁记录id',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_device_code',title:'c_device_code',type:'string',width:120,align:'left'},
                       {field:'c_damages',title:'赔偿金',type:'decimal',width:120,align:'left'},
                       {field:'c_damage_reason',title:'c_damage_reason',type:'string',width:120,align:'left'},
                       {field:'c_create_time',title:'创建时间',type:'bigint',width:120,align:'left'},
                       {field:'c_category_name',title:'c_category_name',type:'string',width:120,align:'left'},
                       {field:'c_stock_name',title:'c_stock_name',type:'string',width:120,align:'left'},
                       {field:'c_type',title:'类型',type:'int',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
